#ifndef MYVIDEOSURFACE_H
#define MYVIDEOSURFACE_H

#include <QVideoSink>
#include <QVideoFrame>

class MyVideoSurface : public QVideoSink
{
    Q_OBJECT
public:
    explicit MyVideoSurface(QObject *parent = nullptr);

signals:
    void frameAvailable(QVideoFrame);
private slots:
    bool present(const QVideoFrame &frame);
};

#endif // MYVIDEOSURFACE_H
